package com.webside.points.model;

import java.util.Date;
import java.util.List;

import com.webside.points.wechat.DateUtil;


public class IssueEntity {

	/*
	 * 问题ID
	 */
	private int id;
	/*
	 * 问题类型ID
	 */
	private String issueTypeId;
	/*
	 * 问题内容
	 */
	private String  issueContent;
	/*
	 * 图片
	 */
	private String image;
	/*
	 * 问题追加内容
	 */
	private String addIssueContent;
	/*
	 * 追问图片
	 */
	private String addImage;
	/*
	 * 用户ID
	 */
	private int userId;
	/*
	 * 状态
	 */
	private String status;
	/*
	 * 创建时间
	 */
	private Date createTime;
	/*
	 * 追加创建时间
	 */
	private Date addCreateTime;
	
	/*
	 * 当前页
	 */
	private int curPage;
	
	/*
	 * 微信ID
	 */
	private String wechatId;
	
	/*
	 * 格式化创建时间
	 */
	private String createDateFormat;
	
	/*
	 * 格式化追加创建时间
	 */
	private String addCreateDateFormat;
	/*
	 * 排序
	 */
	private String rank;
	
	private String expertIssueId;
	/*
	 * 浏览数
	 */
	private int browseNumber;
	/*
	 * 打赏数
	 */
	private int rewardNumber;
	
	private String anonymity;
	/*
	 * 父级ID
	 */
	private int pId;
	
	private int like;
	
	private int dislike;
	
	
	
	public int getpId() {
		return pId;
	}


	public void setpId(int pId) {
		this.pId = pId;
	}


	public int getLike() {
		return like;
	}


	public void setLike(int like) {
		this.like = like;
	}


	public int getDislike() {
		return dislike;
	}


	public void setDislike(int dislike) {
		this.dislike = dislike;
	}


	public String getAnonymity() {
		return anonymity;
	}


	public void setAnonymity(String anonymity) {
		this.anonymity = anonymity;
	}


	public int getBrowseNumber() {
		return browseNumber;
	}


	public void setBrowseNumber(int browseNumber) {
		this.browseNumber = browseNumber;
	}


	public int getRewardNumber() {
		return rewardNumber;
	}


	public void setRewardNumber(int rewardNumber) {
		this.rewardNumber = rewardNumber;
	}


	public String getExpertIssueId() {
		return expertIssueId;
	}


	public void setExpertIssueId(String expertIssueId) {
		this.expertIssueId = expertIssueId;
	}


	public String getImage() {
		return image;
	}


	public void setImage(String image) {
		this.image = image;
	}


	public String getAddImage() {
		return addImage;
	}


	public void setAddImage(String addImage) {
		this.addImage = addImage;
	}


	public String getStatus() {
		return status;
	}


	public void setStatus(String status) {
		this.status = status;
	}


	public String getRank() {
		return rank;
	}


	public void setRank(String rank) {
		this.rank = rank;
	}


	public String getCreateDateFormat() {
		return createDateFormat;
	}


	public void setCreateDateFormat(String createDateFormat) {
		this.createDateFormat = createDateFormat;
	}


	public String getAddCreateDateFormat() {
		return addCreateDateFormat;
	}


	public void setAddCreateDateFormat(String addCreateDateFormat) {
		this.addCreateDateFormat = addCreateDateFormat;
	}


	public String getWechatId() {
		return wechatId;
	}


	public void setWechatId(String wechatId) {
		this.wechatId = wechatId;
	}


	public int getCurPage() {
		return curPage;
	}


	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}


	private List<AnswerEntity> answerEntityList;
	
	private UserEntity userEntity;
	

	
	public IssueEntity() {
		super();
	}


	

	public List<AnswerEntity> getAnswerEntityList() {
		return answerEntityList;
	}


	public void setAnswerEntityList(List<AnswerEntity> answerEntityList) {
		this.answerEntityList = answerEntityList;
	}


	public UserEntity getUserEntity() {
		return userEntity;
	}


	public void setUserEntity(UserEntity userEntity) {
		this.userEntity = userEntity;
	}


	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	
	public String getIssueTypeId() {
		return issueTypeId;
	}


	public void setIssueTypeId(String issueTypeId) {
		this.issueTypeId = issueTypeId;
	}


	public String getIssueContent() {
		return issueContent;
	}
	public void setIssueContent(String issueContent) {
		this.issueContent = issueContent;
	}
	public String getAddIssueContent() {
		return addIssueContent;
	}
	public void setAddIssueContent(String addIssueContent) {
		this.addIssueContent = addIssueContent;
	}
	public int getUserId() {
		return userId;
	}
	public void setUserId(int userId) {
		this.userId = userId;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
		this.createDateFormat = DateUtil.dateFormat(createTime);
	}
	public Date getAddCreateTime() {
		return addCreateTime;
	}
	public void setAddCreateTime(Date addCreateTime) {
		this.addCreateTime = addCreateTime;
		this.addCreateDateFormat = DateUtil.dateFormat(addCreateTime);
	}


	@Override
	public String toString() {
		return "IssueEntity [id=" + id + ", issueTypeId=" + issueTypeId + ", issueContent=" + issueContent + ", image="
				+ image + ", addIssueContent=" + addIssueContent + ", addImage=" + addImage + ", userId=" + userId
				+ ", status=" + status + ", createTime=" + createTime + ", addCreateTime=" + addCreateTime
				+ ", curPage=" + curPage + ", wechatId=" + wechatId + ", createDateFormat=" + createDateFormat
				+ ", addCreateDateFormat=" + addCreateDateFormat + ", rank=" + rank + ", expertIssueId=" + expertIssueId
				+ ", browseNumber=" + browseNumber + ", rewardNumber=" + rewardNumber + ", anonymity=" + anonymity
				+ "]";
	}


	


	

	

	



	



	
	
	
	
}
